fix Issue 11881 - -betterC switch suffers from bit rot

If `-betterC` switch is specified:
- Do not generate TypeInfo
- Use HLT for assertion failure and range violations.