Refactor processing of inequalities with oo

fixes #7775
fixes #7798
fixes #7841

this patch replaces #7800 and #7799
> safer re: #7951

this issue doesn't matter here, we only return r if it's a BooleanAtom.