Implemented curcular alias reference detection

ServiceManagers that allow overwriting the service definition may
contain circular references which will cause an infinite loop. 
Extracted alias resolving code to a protected method that will detect
circular references.
cs fix
Removed unneccessary import for exception class
Fixed typo in unit test covers annotation
Added check for circular alias reference to setAlias()
Merge branch 'hotfix/5093'

Close #5093
Merge pull request #5100 from tux-rampage/sm-cyclic-alias-ref

[ServiceManager] Implemented circular alias reference detection
[#5100] CS fixes

- one argument per line (sprintf call)
Merge branch 'hotfix/5100' into develop

Forward port #5100