[FIX] XQuery, modify clause and switch expression: update checks