Fixed foreach for enumerative sequences. Added autotests for enumerative sequences.