Fix GitTreeEntry.toObject for entries returned by getEntryByPath.
Fix creation of GitTag from a GitObject.