Fix issues with array destructuring in arrow and assignment

Fixes #346