use array=() instead of declare -a

Benjamin Mako Hill || Want to submit a patch?