Cache output of GitFsResolver.refs and GitRemoteResolver.refs, fixes #1083
Merge pull request #1085 from ahutchings/master

Cache output of GitFsResolver.refs and GitRemoteResolver.refs, fixes #1083