Fix reduce() implementation when no accumulator.