Returns:
Resolve (detect) the tag of the scalar node of the given type.
- the value of the scalar node
- true if there was no tag specified (the tag will be resolved)
the Tag that matches the contents