Implemented Iterable interface so that enumerators become able to be
used with foreach syntax.
Implemented a test for 'foreach' syntax.