added fixNestedArray function for assoc. arrays like , which were OTF id=>(0=>name); now they are id=>name