Add a check for aliases when checking for circular dependencies. If aliases are used, assume the dependencies aren't circular unless the same alias is used multiple times.