Changed min/max to always return +nan.0 if it's in the arguments.