Fix exp/log._eval_is_rational for rational args