Fixed up map finder.
Safety check to confirm we removed all but one element in the stack.
Writing MAPs in XmlDatumWriter.
Last change before I break everything.

Once the isMap() function is ready, it will be time to debug everything
I broke.