[DROOLS-104] Queries do not work with class literals