Fix ref vararg in same function scope