Fix detect struct array, add options for encoding, etc into serializers. add wrapper for handle CData in XmlWriter

To be compatible with http://www.php.net/manual/en/function.xmlrpc-encode-request.php