Support simple wildcards in tree patterns