Tweaks

Some tiny tweaks, to cache hasOwnProperty, and make forEach follow ES5's Array#forEach by passing in the array as the third argument to the iterator.