Improvements to inequality solving

fixes #8206 (please feel free to any others that are related that also work with these changes)
fixes #8518
It's changed globally within the file: S.NegativeInfinity and S.Infinity are now used.