Revert from addInstanceMethod to addMethod on Class, kept addClassMethod.

Passes the unit tests.
`var ptr = pointerOverride || this.pointer;` is slightly shorter.