Add support for __setitem__ in TargetConfig