[MOD] XQuery: map and array functions updated