Fix missing type check and method caches.