Fix class_for with autoloading