Fix rounding error in CurrencyValue and add tests.