JBIDE-14976 failure in org.jboss.tools.cdi.core.test.TypeTest.testType

Prevented type cache from returning obsolete objects.