extended jni_helper about CALL_METHOD_RETURN_OBJECTPTR_WITH_DYNAMICCAST() && several tests including read(...)