DynamicModelCodeGenerator for collections