Fix IsInf and IsNan to return bool instead of float.