CBQE-2087: add views test with custom reduce fns and different emit types

Change-Id: Ia38685fefc62dbe2f8cf3d6cd5886dc0b78f720f
Reviewed-on: http://review.couchbase.org/39606
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Iryna Mironava <irynamironava@yandex.ru>