Make Network.ListReferences(Remote) accept Credentials

Add CanListRemoteReferencesWithCredentials() test.
Ensure strings are absent of extra zeroes
before reaching libgit2.