* types: Switch table driven test error messages to new format
Make table driven tests in /types follow the format described in #1664
* typos / lower case errors
* lower case, not sentences
* lower case, not sentences
- call MustSortJSON before return JSON bytes to guarantee alphabetic
ordering
- moved SortJSON and MustSortJSON to types package to avoid cyclic
package dep