Changes various query options to be transient so that they're not persisted.
Adds QueryToQuery conversion function in State so that #setJavaField handles genericized query correctly.