Learning to Segment Unseen Tasks In-Context