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