Made the binding processing errors prettier

 Made the binding processing errors prettier by removing the wrapping anonymous function. This was made possible by making the wrapping function a named function instead of an anonymous function, and then removing it only if it has the right name. This fixes #1632