Ensure results are distinct.

Because results get streamed immediately when requested and we're
selecting the model, we were ending up with duplicates.
Fix iterating when generating the display.
Merge pull request #72 from adam-vessey/7.x-collection-query-fix

Ensure selected tuples are distinct, and the iteration over the returned tuples.