Update git2.tree for latest libgit version and sanitize enum field names in git2.types.