Fix TrigonometricFunction._eval_is_rational for rational args

closes #8653
Fix exp/log._eval_is_rational for rational args
Merge pull request #8654 from skirpichev/8653-fix

Fix TrigonometricFunction._eval_is_rational for rational args