Fix mismatch between pointer and pointee type when diagnosing an incorrect
object argument type for a member call.