Style and logic fixes and optimizations.
Turned strict mode for entire library on.
Allowed functions created with new Function().
Not converting arguments to Array where possible.
Using for (var ... of ...) instead of while & next() calls.