Clarify return types from Repository.{create,lookup}_branch()