VarSet#expand_varref(): fix recursive expansion