[=] Fixed bug incorrect check 'object is array?'

1. ( ( [] ).constructor == Array ) is `false` in node-webkit
Correct variant is:
`Object.prototype.toString.call(headers[header]) == '[object Array]' `
2. Optimization of array iterator.