semantic: Handle ref parameters when handling overload resolution.