fixes rounding errors in fees and valueout

Fixes https://github.com/bitpay/insight/issues/478