Further unit testing, plus bug fixes, of XML unparser.