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