Add missing brackets while printing powers of Rational numbers

fixes #8409