Merge pull request #5626 from csware/parse_bool boolean config parsing fails in some cases with mapped values