DataSelection: Don't allow the user to replace an existing dataset with one that has a different dimensionality.  (Show an error message in that case.)
Fixes #541