Fixed array convertion and foreach tag separator

There is a compilation error in 2.1.0 version.