Add --wrap, --unwrap, --flatten to add/remove json array wrapping.

Among other things, these options are useful for preparing json
for input to other tools like "jq".