Add in the very basic types defined in the original code.

Just some basic encoding options and tests for this library.