Issue 13832 - delegates that return ref do not output correctly to di file

https://issues.dlang.org/show_bug.cgi?id=13832