fix Issue 11915 - Inconsistent overload resolution behaviour between `ref` and `out`