CLN: put var/std/sem into new stat_function maker