Issue #2346659: Core's adapters for supporting typed data break tests.
Issue #2346659: Really fixed tests and introduced RulesEntityIntegrationTestBase.
Fixed merge conflict.