DATAGRAPH-474 @Query Result type is not Set

* using LinkedHashSet to keep the order
* optimizing if input is already a collection, not just an Iterable