cifactions => fixed bug => in method append_action(), we call map_and_insert() internally in order to get the correct cofaction class copied, let to std::bad_cast exceptions under certain circumstances