Check dimensionality in DataSet::setExtent. Closes issue #272