Support sequence in TaskContext persistence