[FIX] XQuery: minor optimizations
[MOD] GUI, Editor: history list revised