Add 'own' argument to iterator.

If set, it will only create an iterator for own properties.
If unset, it will iterate over all properties in the prototype
chain.