Use isArray instead of other array tests

Issue #61