Fix bug in ArrayMap emulation

The constructor taking the element type was not using the ReflectionCache
to instantiate the arrays, causing ClassCastException.