DROOLS-236 NPE when ksession is serialized with facts logically inserted

Tast case and fix for DROOLS-236.

This fix is to make sure that only the same class fact will create its EqualityKey. I'm not 100% clear if it is the right way to fix. Please review.