Handle rest in anonymous functions.