raft: add Configure

Configuration change
This is a really good point. It seems like our type fields should be enums. I don't buy the idea that it might slow encoding/decoding without a benchmark.