Bugfix: type validation failures were exiting rather than throwing exceptions