Miscellaneous type fixes.
More type fixes for ATNSerializer and Parser.