UPGRADE: ejs, http paks

ejs: fix iterating arrays when deleting elements at the same time in arrays or objects

http: fix parsing uris when query contains http://