fix #3086, performance of quoted functions in AST