Change XmlNamespace impl to return alternate prefixes
after the current prefix for an uri is removed. In order of adding.
Fix emitting xmlns attributes