Add pretty JSON function and Ord instance
Fix json display bugs
Merge pull request #598 from maxsnew/tojson

More JSON Deps functionality + Instances