Enumerator#initialize support duck-type
Merge pull request #1974 from ksss/enumerator-duck

Enumerator#initialize support duck-type