AST for type declaration almost done