CBQE-0: Use most compact JSON representation for query args

When we have query parameters that are encoded as JSON, use the most
compact representation in order to keep the URLs as short and readable
as possible.

Change-Id: Idad82ef60887b91316127a3e8b387796d65c368f
Reviewed-on: http://review.couchbase.org/42603
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: buildbot <build@couchbase.com>
MB-12251: Add range tests for spatial views

Change-Id: Id41d2a55f6cb8506eeea6a829a31881047b2720c
Reviewed-on: http://review.couchbase.org/42604
Reviewed-by: Ketaki Gangal <ketakigangal@gmail.com>
Tested-by: buildbot <build@couchbase.com>