Fix arrays being converted to objects in assocObj()