fix typos in Arrays.js and upgrade to grunt 0.4

may try to upgrade demos later