Add support for dict and set literals in object mode

Fix #477