Evaluate dif for inequalities only if arguments are reals

fixes #8288
Fix tests
modify major/minor detection of ellipse
Merge pull request #8290 from skirpichev/8288-fix

Evaluate dif for inequalities only if arguments are reals