Quantity.ito method now does the conversion in place when possible.
Refactored some helpers for tests.