This should help serializing maps where it's unknown up front whether the tables and/or values come first. Closes #142