Fix the encoding of runtime-invoke wrappers in AOT. Add support for gsharedvt delegat...