Remove usage of concrete.ndim

This allows ArrayAdapter to work with h5py datasets.