Added Scope.toNamespaceContext, and XPath interop test