Return an instance of dict_class from merge_setting

Proposed solution to #2057