fix Issue 13835 - ICE in interpret.c:736 - Issue with static variables
Merge pull request #4203 from 9rnsr/fix13835

Issue 13835 - ICE in interpret.c:736 - Issue with static variables
fix Issue 13832 - delegates that return ref do not output correctly to .di file