Query-related changes

- Added the ConditionalRenderMode enumeration.
- Added wrappers for {Begin,End}ConditionalRender to Query.
- Added the ConditionalRender class.
- Other minor updates.