Apply IXmlSerializable implementation

Allows a round-trip XML Serialization of the class using the XmlSerializer without the pain of generating dynamic assemblies.