compiler: cleaner use of sets.