[PATCH 06/19 v6.1.y] minmax: simplify and clarify min_t()/max_t() implementation