Upgrade reductions to use key_group_level option
Merge pull request #91 from cloudant/19776-fix-group-by-collation

BugzID: 19776