consistently emit aliases but not duplicates