Merge pull request #4552 from libgit2/cmn/config-header-common Cast less blindly between configuration objects