[FIX] XQuery: check nested transform expressions for inconsistencies