Fixes defineTypeError.

This fixes a typo. And makes the error constructors created by defineTypeError actually work. I guess thats why they say eval is evil.

Needs a version bump in package.json