Add scalar type metadata refinement for JSON profiles

Move this comment above the loop that performs the copy.