fix bug in treewalker -- convert () to [] for inputs. (ie input i = (1, 3) --> i = [1, 3])