* Fix reference types in @typedef Previously this code path was broken and untested. Fortunately the fix is simple. * add test case from #40234 * update baselines