Fix problem when an array variable is passed as argument to runSequence

Please have a look at the new test, without my change the passed variable "taskArray" would be an empty array after the runSequence call.