angular: Patch angularjs `isArray` function to allow subclasses of arrays too.