Fix destructuring pattern in arrow functions

It didn't work for arrow functions on the rhs or passed as argument. Now
it does.