raft: change index and term to int64