implement __repr__ for WorkerContext and others

we don't want `isinstance` here?