IE8 fixes

Some `String` enumeration methods failed.
Also, `var i in foo` changed to `Object(foo).forEach(function(i)`.