Fixed adding component with alias

We are adding component with an alias and a cache like this
```php
$container->cache($cache)->alias()->addComponent('alias', '\my\class');
```
But in that case the cache is not working and the component is instantiated each time when requested.

In this pull request I am proposing how to fix it.