Repo#has_ref respects tags as well as heads