I agree that the array pairs isn't ideal but we do still need to support it, unfortunately.

I think that if we are going to show examples of using the hash syntax, we need to change the code to validate index types, as you said.