use Array.isArray() instead of instanceof Array

resolves #151