Torah Temimah cites Yoma 74a.
Rav Acha bar Yaakov said: to exclude one who plays with dice… It is different there, for Scripture says “if he does not tell,” and this one is not a person of telling at all.
Even though the disqualification of a dice-player is rabbinic, the verse’s language of “yagid” is used to treat him as not a bar haggadah for purposes of the shevu’as ha-eidus korban.