Implement cosmic.Model type, use cosmic.Link to serialize links