Throw `Error`s instead of objects and strings

Fixes #92.