Fixes for issue 42, wrong types passed in to delegate
Added type checking for issue 41, added unit test for it
Added purposefully seg-faulting unit test that should catch the issue before erroring
Moved typeof array to Array.isArray
Removed extra newline
Merge pull request #43 from TooTallNate/issue-42

Resolution to Issue 42 - Seg fault on wrong type