Fix is_rational helper for exp_polar(0)

fixes #8008
_minpoly_compose: Change incorrect is_rational tests to is_Rational

We need this, as later we use .p/q properties.