Fix two bugs in HRTB

Fix two bugs in HRTB:

1. Categorize early-vs-late bindings on impls when constructing generics, so that we don't add unnecessary region parameters.

2. Correct the DeBruijn indices when substituting the self type into the method signature.

Previously, the DeBruijn index for the self type was not being
adjusted to account for the fn binder. This mean that when late-bound
regions were instantiated, you sometimes wind up with two distinct
lifetimes.

Fixes #19537.

r? @pcwalton