remove some dojox references + move some dojo/_base/array use to ES5