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.
Merge pull request #7480 from smichr/rad

check for plain sqrt in denominators