DROOLS-236: BZ-1000385: BZ-1000384: fixing serialization when TMS is dinamically enabled/disabled
Backporting 770d13033076943a5b4c476942e6f93e4d953612 : [DROOLS-141][BZ-999491] register custom listners on StatelessKieSession at each execution
[BZ-986479] avoid trying to retract invalid fact handles
[BZ-986483] avoid trying to clean up lock-on-active blocking activation
[BZ-986465] avoid infinite loop when removing a rule containing a sliding window
[BZ-1029911] add test demonstrating that the type safe check works with inner classes
[BZ-1029911] add test demonstrating that the type safe check works with inner classes
BZ-918682 - Unable to identify what process has invalid data
 - clearing error lists