Support nested lists and maps for saving mongo documents
Some updates to mongo options and toJson tests
Remove unused code