[dcs] Add named_dict, tests

Also fix centered comments