Fixing bug in associative array detection