ATN serializer cleanup

* Additional sanity checks
* Remove redundant field initialization
* Fix serialized grammar type for combined grammars