Adds a shortcut for a shallow flatten for arrays containing only other arrays.
Merge pull request #1143 from spadgos/flatten-shortcircuit

A shortcut for a shallow flatten