use Array.isArray() instead of instanceof Array; fixes #225