Add methods to AST classes to convert to list expressions