fix constness in rpc dump