ScalarResolver for JSON Schema
See Chapter 10.2. JSON Schema.
Resolve (detect) the tag of the scalar node of the given type.