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