Tweak methodswith again, fix #5722

- unique the method list, in case we have multiple references (for example, 'ans')
- check for x.ub != Any if x is a TypeVar and showparents==true