Allow zero repetitions for CoinFormat.repeatOptionalDecimals(). Also add tests.