mongo: fix three bugs
mongo: fix three bugs

- Normalize dictionaries before saving in mongo
- Close stream in .create()

Signed-off-by: Bas Westerbaan <1d31d94f30d40df7951505d1034e1e923d02ec49@westerbaan.name>

marietje/maried