Add workaround to Microsoft XPathResultType issue.
Add TODO comment re inefficient late bound calling.