Fixed hashing and isEqual.
Removed unnecessaary amountFromBaseUnit.