Initial version of StructsToMaps().
Document, simplify.
Split tests.