make setting doc['x'] the also set doc.x
Merge pull request #21 from dannyroberts/robust-dynamic

make setting doc['x'] the also set doc.x