[DROOLS-105+106] PoC fixes for query indexing and window context

PoC to be discussed