added internal _isArray function and replaced 5 instances of constructor...

... === Array checking

Solves issues #302 and #179.
Replaces pull request #294, which should be closed.