Convert type-grammars to use deltas for updates This is very much analogous to what has been done for term grammars.
Add preliminary, unused delta type for type grammars
Move type_grammar datatype decls into new _dtype struct