Better sematics in MPGetObjectFromJavaScript