Fix more cases of begun->first and end->last, primarily in references to arguments. Reported by Daniel Krügler.