Update ToJSRef, FromJSRef, PToJSRef and PFromJSRef