remove redundant code in sse4.1 min/max
add more min/max tests, in particular nan cases
fix min/max scalar and simd common for floating-point when nan is involved