pub fn encode_batch(batch: &IrBatch) -> Result<Vec<u8>, IrError>
Encode an IR batch to JSON bytes. Used for DevTools replay and testing.