Ok, I now think I know why singleton sets were not being recognized. I think that the line:
Context("Interval");
Is necessary before using empty sets or singleton sets, but not necessary before using sets of more than one item. I am not sure why, but adding that line fixed my bugs.