Add missing JavaDocs for ExchangeRate.
Fix one unexpected case of fiatToCoin overflow and add tests.