Associate AST term and value types.