Fixed array convertion and foreach tag separator

There was a compilation error in 2.1.0 version.