any_na switches to C implementation

Note that base R's is.na will return TRUE for both NA and NaN. Hence,
in order to match the behavior of is.na, we check for both NA and
NaN-ness of each element.