Prevent memory leak on branch removal

Actually, git_branch_delete() no longer frees the reference handle for
the caller. We can now let the handle take care of this when it's
disposed.
Fix xml doc related warnings