cmd/hclspecsuite: Generate correct ranges in diagnostic-diagnostics
cmd/hclspecsuite: Generate correct ranges in diagnostic-diagnostics

We were taking a pointer to a for loop iterator variable and thus
capturing the final iteration value rather than each one separately. By
using the .Ptr() method instead, we force a copy of the range which we
then take a pointer to.

hashicorp/hcl,strivecast/hcl,strivecast/hcl,hashicorp/hcl,hashicorp/hcl,strivecast/hcl,strivecast/hcl,hashicorp/hcl,hashicorp/hcl,strivecast/hcl