Made ValueOfQuantity Embeddable and Serializable

ValueOfQuantity can now be easely dumped into a stream because it
implements Serializable. ValueOfQuantity can also be loaded into a
database because it is Embeddable.  Contrubits to #6