Free the git object and better length handling
Rename Rugged::Reference#dereference to Rugged::Reference#peel