Update error categories to match libgit2
Deploy Proxy.MarshalAs<T> more extensively
Introduce marshaling extension to IntPtr