Fixed iterative function elements_one_child_iter to make correct use of array