Show the name of the trait in the error message
Adjust error message for method type mismatch

Closes #10118, Closes #5925