Fixing grouped expressions for arrays of hashes with keys > 1