Add tests for useful hash access errors.

Make sure we get ParseErrors that contain "not a hash or array" so it's
clear what has happened.