Factored out common utility methods for dealing with parser object trees created by the XML parser.
Implemented support for parsing and serializing message nodes with numerus forms.