Minor fix for aliases (better error msg for circular references).