add ignore_duplicates option for Tree.set_buffer