Fix classmethod and staticmethod in extension types for 2.6
Make Function pass the callable test for classmethod/staticmethod