Added JSON stringification to JSON based query arguements.

Change-Id: I5952cdd7f32a5329bb70ffdb0abe17c1206708c8
Reviewed-on: http://review.couchbase.org/30162
Reviewed-by: Matt Ingenthron <matt@couchbase.com>
Tested-by: Brett Lawson <brett19@gmail.com>