show proper error message when a class method has different number of arguments than required in implemented interface (closes #3417)