Added a 'getNodeName' API to JSON/XML InputArchives

It can be useful if loading a JSON or XML document to understand when the name
of the current nodes is. This allows the `load` deserialization function to
perform decisions based on the current node name.