Fixing confusion between assoc arrays and objects