indexer: check the packfile trailer for correctness

The packfile trailer gets sent over and we should check whether it's
correct as part of our sanity checks of the packfile.
indexer: don't reiterate the class in the message
Merge pull request #1860 from libgit2/cmn/indexer-hash

indexer: check the packfile trailer
msvc: No void* arithmetic on Windows