Multiplicity on set

Migrate `dim` from `Dat` to `Set`.

[Buildbot pass](http://buildbot-ocean.ese.ic.ac.uk:8080/builders/pyop2-testing/builds/231)