bind dispatch hooks for rpc

This fixes https://github.com/ArcBees/GWTP/issues/525

I think this should be merged as quickly as possible since all RPC projects won't compile at the moment.
the `getDispatchHooks` method should be removed and direct access to the private member : `builder.dispatchHooks` should be used, for consistency.