Add some missing const declarations.
Make sure git_remote_dup copies a remote's refspecs correctly.
Merge pull request #2052 from arthurschreiber/arthur/add-git_remote_dup

Fix git_remote_dup & add missing const
MSVC doesn't like modern code