And then use the `cls` constructor to do the construction, to ensure that the output is of the right type, e.g., when calling `IntegerList.from_dict()`.