Add some missing const declarations.
Make sure git_remote_dup copies a remote's refspecs correctly.