Code-size optimisation for top-level indirections (#7308)