gitk: replace parent and children arrays with lists