nitc: only serialize the type model if `json::serialization_read` is imported