RF+ENH+TST: support arrays of any size, and add doctest to illustrate their use
RF: change display style of N-dimensional arrays for N>2