Add a simple benchmarking tool used for efficiency related tests.
Fix query mechanism emiting extra rows for the query views which use collation.

The document types of the collated document were added to the base
DOCUMENT_TYPES. Now this gets unmangled.