one more tweak using flds_unique_rgn_id in stopifnot()

make code more general