MAINT: remove some duplication in vectorized compare code
ENH: vectorize isnan

isnan on amd64 is equivalent to x != x so we can use the existing code
with only adding a specialization for unary loops.
Merge pull request #4449 from juliantaylor/vectorize-isnan

ENH: vectorize isnan