RealInterval returns correctly sorted a and b values; other misc changes

fixes #6463 - I just let polys do as it likes but make sure that the properties requested are right

Other changes are split off of #8499