Fix method reference errors and make bindings.ts generation work again