The purpose of this PR is to reduce the number of loops and recursions of SimpleAliasRegistry hasAlias implementation

Comment From: sbrannen

This has been merged into master.

Thanks