Swap `instanceof Array` for `_.isArray`

See http://nodejs.org/api/vm.html#vm_globals
grunt-jasmine executes specs in new vm contexts which break instanceof