Added check for circular alias reference to setAlias()