Fix problems with prefix to namespace mapping

Writing: set default namespace = target namespace.

Reading: correct detection whether a prefix points to the target 
namespace. Allow the default namespace to point to a different
file.

With this commit, all test cases from QNameReferenceTest succeed.

Bug: 329668
2 files changed