Fleshed out some pgsql-simple data types and to/from JSON instances, plus newtype wrappers.