fixed Arrays::flattenKeysRecursively