Codec refactoring/documentation.
Eliminate reflection from encode/decode paths.