Deep copy TaskInfo outputs in constructor to avoid ConcurrentModificationException