Add scalar type metadata refinement for JSON profiles

NVM. It was in the hidden part of the diff.