rpc: use static assertions to guarantee struct offset positions.