Merge pull request #16 from radai-rosenblatt/master

add 2-way Stat.Type <--> int mode convenience methods
make Stat and FsStat serializable