Comparing methods with == doesn't work 

The correct way seems to be with Reflect.compareMethods
Merge pull request #1223 from SergioB/patch-3

Comparing methods with == doesn't work