This PR fixes a miscompilation when encountering projections of non trivial structure types. Closes: #11322