Assert on clean enumeration.

Closes #30.