Implement #each method and include Enumerable.

This allows converting the set to an array or native set.
Merge pull request #1 from alisdair/master

Implement #each method and include Enumerable.