Would be nice to have a function to rename an object. Something like `doc.rename(old_name, new_name)`.