Makes <<__Memoize>> work with static methods

Summary: Next will be top level methods. The tests feel a little thin here, but I think the main memoization tests cover most of what needs to be tested so I just added tests to show that it works with a static method. Let me know what you think I'm missing

Reviewed By: @jano

Differential Revision: D1502068