fix associative arrays if the type is not string

Bugfix ... see added test