Fix missing Rules::__set_state method.