Iterate through Variables in a Script and adding them to a Generic List

So I have this set of variables:

var knowsCopMoves01 = new List.<ScriptStep>();
var knowsCopMoves01_repeat01 = new List.<ScriptStep>();
var knowsCopMoves01_repeat02 = new List.<ScriptStep>();
var knowsCopMoves01_repeat03 = new List.<ScriptStep>();

and I want to add them all to a new List.

var allScriptsList = new List.<List.<ScriptStep> >();

The problem is dynamically adding all these variables to this new List, this is what I wrote that I thought would work:

	for (var script : List.<ScriptStep> in GetComponent(Dialog_Manager)){
		allScriptsList.Add(script);
	}

But I always get this error when I start the game :

ApplicationException: Argument is not enumerable (does not implement System.Collections.IEnumerable).
Boo.Lang.Runtime.RuntimeServices.GetEnumerable (System.Object enumerable)

Just like the error said, Dialog_Manager is not enumerable, meaning that you cannot use it like you did in your foreach. You should try to add a public function to your Dialog_Manager script, which will allow you to have access at all the lists.

//in dialog_manager
public function GetScriptSteps() : List.<List.<ScriptStep> >  {
 var lists = new List.<List.<int> >();
 lists.AddRange( ... );
 return lists;
}

//in your other script
 var dialog : Dialog_Manager = GetComponent(Dialog_Manager);
 var allScriptsList = dialog.GetScriptsSteps();