Add `enum` codec
Merge pull request #7 from zsau/feat/enum

Add `enum` codec