BUG: fixed serialization code for new objects (TemporaryPath, BarrierJob)