Renamed max-type template functions.