raft: panic on bad slice