Second cut at rewriting custom Writable types to a more compact format.