Adapt CBP example for flexdims
Bugfixes for AbstractDim

collections.Counter.subtract is implemented in a pretty broken way, but
easy to work around.  Also I had a bug in the __div__ code.