allow support for chained map reduce.
remove useless emit.
Merge branch 'reduce-support' into map-reduce-5.1.0