ISPN-4635 Query DSL should check against mixing objects created by different factories or builders
ISPN-4474 ISPN-4473 Get remote events working in compatibility mode

* Fixes both ClassCastExceptions reported in these jiras.
* Adds remote event compatibility tests.
* Refactored remote event assertion code to be sharable between the
Hot Rod client tests and the compatibility tests.