[#2665] Implement SPI for RenderContext and BindContext listening to
allow for custom SQL transformation

 * Added tests for IN predicate
 * Added tests for EXISTS predicate