[DROOLS-104] make queries to work with class literals