add the arrayoffield support in multiple foreach.
Merge master/master