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

This should also fix #2