Improved support for object property shorthand. Fixes gh-1813