Wrap the return value of the type_id intrinsic in an opaque box

Closes #10594
auto merge of #10722 : cmr/rust/type_id_opaque, r=alexcrichton

Closes #10594