s3:registry: add a new function regval_ctr_value_byname()