Make the AccumulatorCache also work with instance methods, e.g.:
AccumulatorCache
class Foo: @AccumulatorCache def bar(self): return 42
Previously this would fail because the self got lost.
self