Collector can now either return an array of values or a single value.