Improved type safety of config parsing.