Fixes #2749. Restricting  to instance methods in class bodies, where it actually has a chance in hell of calling the correct thing.