Member lookup on type parameters has different ambiguity rules. Fixes #9776