Use new ucl_object_type API