Use Array.isArray(...) instead of instanceof Array

We want to perform JSON schema validation on our project, but the validation fails on instanceof Array checks. The reasons for using Array.isArray(...) are given in the article:

http://web.mit.edu/jwalden/www/isArray.html

Changing all array instance checks to use Array.isArray(...) fixes our issues, and may well help others who want to use this library.