closes #153 many improvements to type layer (test, docs, refinement)

It would be nice to have another reference implementation of an encoder besides StringEncoder like a Base64 encoder.