[ADD] XQuery: optimize union and list exprs in paths