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
Revert the addMethod on Class, kept addClassMethod.