Fix test failures exposed by changes to Boost.Rational.