Add a convenience function for specifying reducing by single object

This change makes it more convenient to create "reducer" objects encapsulating particular
reducing strategy.