An important fix to reuse of ClassKey by TypeDetector