Refactor processing of inequalities with oo

fixes #7775
fixes #7798
fixes #7841

this patch replaces #7800 and #7799
(I mean explicitly call a method of `other`, just using `Infinity` as an example)