adding namespace support on $context for XML encoding

The XmlEncoder wasn't able to set the xmlns on the root node of the xml
document. By adding this, it supports other languages serializers that
need strongly-typed xml. 

This is necessary if an XSD that has a targetNamespace has proxies generated in any other language (Java, C#).  I'm doing this so our team can interop when serializing/deserializing.