Improved support for parameter destructuring w/ rest. Fixes gh-1818

@caitp can you take a look at this?