Merge pull request #3079 from rainers/cleanup_iserror

silence warning about missing return and add assert to isError
build type-info in semantic, not during code-gen