Made datum_t be refcounted.