Merge pull request #2487 from libgit2/cmn/revwalk-no-prealloc Work around strict aliasing in array growth