Fix the generation of stelemref wrappers in full-aot mode. Some wrappers were not generated with the previous approach. Fixes #10826.