test: outputSpec: add 'supports null JSON document'
dummyserver.js: handle /json/null GET
-browser: use getOutputLength instead of output.length, fixes outputSpec conformance