Generator: fix *args and **kwargs handling