Update memory-operations.xqy

Fix 0.4.x branch