An empty array will not be turned into an array of references. This violated the invariant than an array has values iff it has keys.