Issue 11317 - glue.c:1218: virtual unsigned int Type::totym(): Assertion `0' failed.

https://d.puremagic.com/issues/show_bug.cgi?id=11317

Make ref-ness deduction and return type inference orthogonal.