Add new `PolygonSub` and `ToJson` terms.
Fix some terms that were being tested.
Add another format class that checks all terms are used.