Optimization

**:warning: NOT READY TO MERGE :warning:**

Waiting to bump to libgit2/libgit2#1630 after it's been merged.

This optimizes various things, and fixes a memory leak caused by the naming of `GTDiffDelta.newFile`.