Use Trove collections for ontology internals

A few related optimisations in navigating and joining sets/iterables

#246