Fixes IE8 and IE7 support: they do not support Array.isArray().

Fix for #21.