How to differentiate between Map, Array, String, etc… in XPath 3.1? Is there a function that can test (or return) the type of .? For example: