[JNI] Fix definition of isPrimitive/isObject and use them consistently
[JNI] Fix definition of isPrimitive/isObject and use them consistently

PCMNN/scalan-ce,scalan/scalan,scalan/scalan,PCMNN/scalan-ce,PCMNN/scalan-ce,scalan/scalan