Fixed ClassMetadata reflection when loaded from cache