enable subclassing of Quantity

see issue #56 for detailed discussion