Allow instance methods to be wrapped and unwrapped correctly.

Change-Id: Ia29e0e8a54fa815dec88016a9444fe7cfad7b8ac
Merge "Allow instance methods to be wrapped and unwrapped correctly."