Adds support for hashes in arrays

This is to support a customer who uses Looker, which returns all JSON replies in an array for some reason.

I even added a test for it!