[FIX] XQuery, file:write: materialize result before writing it