Pint fix

A device expects values with unit `q.count` in their setters. Before this it could be e.g. `q.metre / q.millimetre * q.count`. If one doesn't do `to_base_units()` on such a value then e.g. `"{0}".format(value)` yields wrong result.