simplified the serialization utility

Ignore-this: 6ba7c4ad1707556d97c53132a61bc534

darcs-hash:20141013014341-c21fe-e792df592b1bd84dd385c957364192ba0c792cd4