Fix issue with object literal in the destructuring initializer

Fixes #1011