Rewrite commit with rewritten parent

Continuing on from https://github.com/libgit2/libgit2sharp/pull/845#issuecomment-59640173, it does seem like this should be supported.

The test was initially introduced and made to pass by 7b7aef0abfaca5c1b9374c9cdda46635b1c53d67 as part of #474.