Add __getitem__ and __setitem__ to content models.