[MRG+1] Fix shuffle for arrays with ndim > 2

Fixes https://github.com/scikit-learn/scikit-learn/issues/3694 by passing allow_nd=True into check_array within resample and shuffle, allowing shuffle and resample to work on arrays with ndim > 2. Also added a short test for shuffling an array with ndim = 3.