For the Selector-cache to function properly, it is required that the keys are value-types or primitives. Otherwise caching fails and the cache leaks. We should see if we can possibly generate a warning log or something similar to indicate these issues early on.