Add internal construction of GitOid with a git_oid type.
Add toString for GitOid.
Simplify walkFetchHead.