Added min/max overloads for floats to correctly deal with NaNs.