Changed return type of ResultCollector::getCollection() to const ref.
Changed pointer member in ResultCollector to unique_ptr.