Fix lifetime error to print `'a` instead of `'&'a`

This changes certain error messages about lifetimes so that they display
lifetimes without an `&`.
This also changes the display of reference type to include anonymous
lifetimes, displayed as `&'<anon> T`.

Fixes #10291.