JNI fix comparing types

For some reason, comparing jclass pointers failed on my system.  I'm not sure why, but comparing types using IsAssignableFrom() fixes things for me.