Raise ArityError when the wrong number of arguments are passed to `while`.