Compiler [Typechecker]: Fix handling of NULL in debug_free_type(). debug_free_type() attempted to dereference NULL when it looped on certain types.