support looping through ArrayAccess instances

add support to use custom classes which implements Traversable for looping purposes.
Merge pull request #99 from endel/patch-1

Support looping through Traversable instances