Shorter names for unexported functions in reducers module

Change-Id: I721084eddd5c7852537e240f53148e0338d8a85b
Reviewed-on: http://review.couchbase.org/27362
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>
Fix some memory leak issue in mapreduce unit test

Change-Id: I45c38ca8e4e194ff520153b972349941cc2cc1d9
Reviewed-on: http://review.couchbase.org/27366
Tested-by: Fulu Li <fulu@couchbase.com>
Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
Tested-by: Filipe David Borba Manana <fdmanana@gmail.com>