Correctly detect Aliases

If for a simple classname no namespace is found also check if it may be an alias.
Set $aliasName always to the simpleName, as also a classname may be an alias.
Removed check if alias set as it is now always set
Merge pull request #3 from danez/patch-1

Correctly detect aliases