Fixed problem with foreach-list construct (bug #10)