[ADD] XQuery, stack trace added to detailed query info. Closes #622.
      Will be visible in GUI and when using -V on command-line