[PATCH v3 04/11 6.1.y] minmax: fix up min3() and max3() too