Fix issue with object literal properties being accidentally misread as path segments.

Closes #177.