Allow to pass haxe string as java Object to JNI