Handle boolean returns from EvalXPath

EvalXPath returns boolean values where appropriate. Adds
EvalXPathAsBoolean to support XSLT processing.

Update some documentation strings to note that function names are also
resolved.