Ensure `_.flatten` works with extremely large arrays. [closes #349]