Visit type parameter in lifetime suggestion

Previously, Rebuilder did not visit type parameters when rebuilding
generics and path, so in some cases the suggestion turns out to be
erroneous.

I added a test case for when there's a type parameter on a path segment (i.e., `Dog` in `Cat<'x, Dog>`). I do not have a test case for when there's a type parameter inside function generic because of the ICE (see #13058).