Unify setters for DynamicList and DynamicStruct