Fixed array convertion and foreach tag separator