fix line numbers in arity errors [#121374]
test line numbers in arity errors