Add type support when adding key-value.