modify Mul.is_infinite to watch for NaN