TMultiArray::Flatten

Flattens the array on a given dimension, merging that dimension and the following one.