Dev fix: The `flatten()` method should only flatten 2D arrays, and not
1D arrays.

- The method implemented isn't actually 100% perfect - if you mix arrays
  and scalars, then the behaviour is undefined. But that shouldn't
  happen in DataTables. Will look into it further, though
Dev update: Better fix for flatten()

- Smaller code and works with a mix of scalars and arrays