Fix support for inverses where the inverse is requested as a Quantity.
Force interpretation of tuples as quantities; lists as lists of quantities.
Fixed a few bugs.