Config: expose config rules parsing

Expose Config.parse_bool() and Config.parse_int() to parse text
according to git-config rules.