Add scalar type metadata refinement for JSON profiles

BTYPES?
gtest?