fn set_attr( map: &mut BTreeMap<NixString, Value>, key: NixString, value: Value ) -> Result<(), ErrorKind>
Set an attribute on an in-construction attribute set, while checking against duplicate keys.