Implemented a userland callback hook for runtime type errors
Added more thorough tests for the error callback
Polished and fully tested the error callback functionality
Merge branch 'error_cb'