Switch to unordered set for queries

Gives performance a nice boost on my machine. 
Also improved WorldTreeScanner, who went K.O. on larger quantities of objects.