Implement Branch.rename.