Fix bug in Rational division.

This should fix the transient errors we've been seeing in the
polynomial tests, and other tests using rational numbers.