Implement BoundFunctionWrapper and BoundMethodWrapper as part of C extension to improve performance.