Fix for hash key conversions with arrays of hashes