Fix minor problems in treelib and util

- Fix default data writer in treelib.write_newick_node
- Fix empty oldext in util.replace_ext
Fix treelib.Tree.rename (skip if oldname == newname)