glsl2/builtins: Rework min/max to use scalar/vector combinations.