[FIX] XQuery, Java modules: unload after parsing queries