interface of iterator_next changed in klib/num-gen.[c|h]