JNI bugfix: globalizing jclass lookup (needed for caching)

http://stackoverflow.com/questions/2093112/why-i-should-not-reuse-a-jclass-and-or-jmethodid-in-jni