Added helper functions to some of the enumerations.
Finished implementing serialization for all of the statement classes.
Renamed some methods in XmlSerialization and AbstractProgramElement for clarity.