Prioritize annotations over expected type for dotted args.

Close PR12849.