univalue: fix JSON pretty-print mode. improve JSON wire mode (!prettyprint).

JSON output now looks human-readable.  The non-pretty-printed output is
nice and compact.