infinite recursion on array in data2xml fixed