Fix regression and overflow bug for rationals.
Merge pull request #1 from jbcrail/fix-rational-rounding

Fix regression and overflow bug for rationals.