Revert "Fixing bug in associative array detection"

This reverts commit 31b200ad3bec7edbba1914880d1dc8491fd0b13c.