remove unused dependencies from array package methods.

most array methods stopped using forEach after e5fc461b39985ffa5aae9810660373ee0d100a88
and we forgot to remove it from dependency list.