implement JVM_isNaN

This method was previously unimplemented and untested.  However, the
JMH benchmark suite requires it, so now it's time to implement it.