intset: fix FoR encode, add FoR decode