Fixes #2489: gets rid of __bind and instead use its inlined form, declaring the same parameters in the bound function as in the prototype's one

Ugliest code ever :poop: