Array support and tests

Added:
-isArray and purifyArray

Replaced:
-expect.js with chai's expect