Update runtime/API and tests to work with latest serialization changes.