Avoid duplication of local variables on S4 dispatch (bugfix).