Refactor types in git

Avoid usage of Uint8List wherever possible. This makes the git library code more consistent.

This cleanup was long due.

@ussuri  PTAL thanks.