nativeGetLong/Double behaves like Android native code