simplified remove_all_actions(), fixed bug in plan_from_actions when regular dict is used