Fix destructuring with rest args

This was originally in #101, but I'm splitting it and will put #101 in a separate repo.