[WIP] Added support for the alias of an aliased package

Fixes: #1332
Todo: Add tests for ComposerRepository