Uses -setValue to enable setting nil values for keys.