dirac_vlc: add a SET_RESIDUE macro and fix recent regression