Allows iterators to iterate inherited properties from prototype.

Closes #487.