improved parser for object literals
Merge pull request #1139 from crate/h/object-literals

improved parsing of object literals