Switch to using kotlinx.serialization polymorphic serializer (instead of custom serializer) for some classes.
In cases where serialized size is extremely important (such as DaqcValue) we may not want to switch even for eligible classes because we don't want it to encode the entire concrete class name.