Ok I can this failing on Windows as well.

AFAIR the array of remote heads is owned by the remote. It's possible that, in `Network.ListReferences()`, beacuse of the deferred execution Linq model, by the time the `GitRemoteHead`s are converted into `DirectReference`s, the memory pointer cannot be marshaled any longer.