Fix Pow._eval_is_rational for integer exponents

closes #8598