Allow dynamically-resizable dim in DPD / unbounded_categorical

DO NOT MERGE