[FIX] XQuery, typeswitch: handle identical branches.