Fix MapReduceToMatcher when reduce uses `sum`

The `sum` function was missing so it was impossible to unit test reduce functions.

I guess this needs a test to go with it? I'll get on that.