Beautify json by default.

The alternative to #218. This calls `dump`/`dumps` with `sort_keys=True` and `indent=4`, and updates the tests to reflect that. The one tricky thing is that, at least with my version of json, it leaves a space before the newline after commas. The test testing complex numbers hit that, and I wrote a comment noting it.