Add scalar type metadata refinement for JSON profiles