(and assorted bugfixes in parsing of objects that were found in the process of adapting that code for arrays.)