Update `curry` and `reduceby` to match those in toolz

Matches curry changes from pytoolz/toolz#170
Matches reduceby changes from pytoolz/toolz#184