[FIX] XQuery: db:open() returns docs retrieved via doc(). Closes #920