JSON syntax fixes.
Added one more UNNEST to complex join.
Merge branch 'master' of http://github.com/couchbaselabs/tuqtng