improvements to @enum (in examples)

adds iteration and conversion to @enum