Stability improvements (#1027)
Bug fixes:
- Partial fix for issue where syntax errors could result either no diagnostic messages, or diagnostic messages with an excessive range (fixes some causes but not all, see #1026)
Technical:
- Remove dead code relating to stable symbols and .NET library stubs