check for plain sqrt in denominators
remove XXX regarding sorting of MinMax args

The args of Min and Max that are used for hashing and comparison
purposes are stored as a frozenset so sorting is not necessary.