remove useless "classes" deque

(now that we have topological sorting)
fix overgeneralized array/iterable duplicate prevention
better test name