Fix custom encoder/decoder/formatter code example

TypeInfo is a struct, not a record anymore.
Merge pull request #33 from yrashk/patch-1

Fix custom encoder/decoder/formatter code example