Ensure that cohorts are sets

I've documented the exception in #66.

This includes #67 because I was using it to clean up the logging to understand what was going on.