Implement proper serialization (and unserialization) routines for SAML2_XML_Chunk objects, by implementing the Serializable interface.
Make SAML2_XML_saml_AttributeValue serializable, as it contains a DOMElement that cannot be automatically serialized.