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.