Flatten() now works for multi-dimensional arrays.