Add failing tests for dict loading
Add tests for embedded documents
Fix mashalling of dicts