Fixes max, min and minmax when comparing zeros with different signs

This fix assures that max(-0.0,0.0) === max(0.0,-0.0), and similarly
for the other functions.