Fixed TreeBuilder.write's missing repo argument to match its documentation.