Fix Android JNI class compare logic, allow string return value (thanks Hugh)