Add an auto_alias compiler pass

Discussion see https://github.com/symfony/symfony/issues/11460

| Q             | A
| ------------- | ---
| Bug fix?      | no
| New feature?  | yes
| BC breaks?    | no
| Deprecations? | no
| Tests pass?   | yes
| Fixed tickets | [#11460]
| License       | MIT
| Doc PR        |
Well, you kind of assume stuff of the implementation. I really want to ensure that this does not happen, no matter what is the internal implementation.

On the other hand I'm fine with removing that part of the test.