add 2-way Stat.Type <--> int mode convenience methods
Merge pull request #16 from radai-rosenblatt/master

add 2-way Stat.Type <--> int mode convenience methods