DataSet::setExtent: check if rank of dims param fits dataset's

Closes issue #272
[test] DataSet::setExtent test for dimensionality check
Merge pull request #273 from gicmo/i272_setExtent_check

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