Add reference resolution for object literals