rpc: use uint32_t for enum fields.