Fix of issue: iteration on arrays with modified Array.prototype.