Float rounding error

To be honest, I'd strongly prefer if RawTransaction would only accept and return integers, but this at least avoids the rounding error that is possible now (see first commit with test added that fails)