ISPN-4485 Remote non-indexed query fails if compat mode enabled

Introduce CompatibilityReflectionMatcher, a special ReflectionMatcher that is able to resolve types
by their protobuf name instead of using the java class name. A number of refactorings around the usage
of EntityNamesResolver were required for this.