Implement nativecallcast for jvm backend

This passes all NativeCall tests about casting OpaquePointers to
native ints, nums, strings, CStructs, CArray and CPointers.