Backport Unique widening [9.8]
This backports the fix to #22010 (closed), as well as parts of !10448 (merged) (which eliminates the dependence on Unique in the BRK_FUN bytecode instruction as using Word64 in this context would complicate the interpreter).