Small change to correct generic handling of high-dimensional (e.g.
int[][][]) arrays