Removed value setter to make Quantity immutable

Closes #761
Updated tests to check that quantity is immutable
Merge pull request #762 from eteq/make-quantity-immutable

Make quantity immutable