Making dynamic models pickable