Changed QuantityOfLength to use doubles.

Should fix overflow issues in #9