:sig
void DValue::set_type(char t)

:params
t : internal type tag such as S, F, B, M, P, or R
return value : none

:see
0_DValue
2_DValue_set
2_DValue_set_array

:content
Changes the node's internal type tag, forwarding through references when possible. Switching to map type clears children, resets list state, and resets the array index.

Prefer the typed setters (`set`, `set_bool`, `set_array`) in normal unit code.

```cpp
value.set_type('M');
```
