Fixed errors in handling type checker errors when running the compiler from the console or command line. Locations are no longer attempted to be printed directly. When an error occurs during type checking, the compilation process is stopped cleanly.
Fixes #9.