Bug fixes in Console app.
Success!

Using XdmDocument rather than XDocument when performing XPath2 compiled
expression evaluation seems to work-around a bug in XmlPrime.