[PATCH 02/19 v6.1.y] minmax: Introduce {min,max}_array()