Fix NoMethodError in class-level setter of class_attribute