Fixed varags parsing and closure wrapping

* Fixes profiles definitions