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.
Merge pull request #337 from dicej/master

implement JVM_isNaN