Better check for associative arrays

In the long run we should get rid of this guessing
as bugs are unavoidable there.

Change-Id: I3cb74129d1d077c93f3213380ce414c919a42050
Merge "Better check for associative arrays"