Fixed bug in Quantity.sum()

The previous version threw an exception of the value was a list of Vec3s.