Update issue found with declare -A

declare -a to replace declare -A. This issue was happening on mac.
Merge pull request #1 from actown/master

Fixed the declare -A issue.