add some useful defaults for json and dumper output

JSON changes: 
canonical = sort hash keys alphabetically.

Dumper changes:
mimic https://metacpan.org/pod/Data::Dumper::Concise