In bash 4.x, associative arrays are not on by default, for backwards compatibility with 3.x and older (basically, you can use bare strings in array indexing, and they'll automatically be treated as variable references). Associative arrays must be explicitly declared before use to override this:
declare -A arrayname
Also, it's considered bad style to name script-local variables in all caps. All caps usually indicates an environment variable.