Setting up for re-implementation.
Converts invoker tests to compile-test tests.
Explicitly encodes serialization with UTF-8.
Improves API for serializing models.