Adds a shortcut for a shallow flatten for arrays containing only other arrays.