Registers a new type of Collector.
The type of the Collector.
A function that creates a new instance of the Collector.