Fixed the misbehaving deserialization of Quantity values