Make a class enumerable with a common-case iterator