[ty] Fix narrowing PEP 695 type aliases (#22894)
A number of our narrowing cases didn't account for PEP 695 type aliases.
The narrowing logic now correctly resolves the type alias and narrows
accordingly.
Fixes https://github.com/astral-sh/ty/issues/2645