implement equals and hashCode for CachingBackedRegistry

- implement equals and hashCode for classes that implement RegistryBacking interface in the Spring and Guice modules.