CLN: replace np.flatten() with np.ravel() if copy is not necessary

BLD: added to vbench, df_to_csv_mixed (mixed frame with mixed dtypes)
Merge pull request #2921 from jreback/ravel

ENH: change flatten to ravel (in internals/pytables)