Handle higher-rank lifetimes when generating type IDs

Normalize late-bound regions in bare functions, stack closures,
and traits and include them in the generated hash.

Closes #19791
Add regression test for #19791
Fix pretty printing of HRTB syntax