Throw errors on event signature parsing failures.
Fixes #256.