Make AST class templates extensible.