In filters, use isArray instead of instanceof

Use the built-in isArray instead of "instanceof Array". 
In the **node-webkit** framework, arrays may be created in the Node.js context, and for those arrays "instanceof Array" will return false, because the Array object of the browser context is a different reference. Using "Array.isArray" or the AngularJS function isArray fixes the problem.