Objects's serialization in the XML export

When a Propel object is exported to XML and contains an object (eg. DateTime), this error appear: "Warning: DOMDocument::createTextNode() expects parameter 1 to be string". This patch corrects the issue.