Improved Blob, Tree, and Index classes to better behave like equivalent Grit classes (for use in gollum-lib).