Handle .any_instance on classes.