Properly implement #each and other enumerable methods