Add isnan, isinf and isfinite