Clone objects returned from jcalls before returning to rust