Improve printing of rationals