Set correct @Type for ThisWorker::State when serializing