CST node construction -- use better field names
 - `_type` -> `_name`
 - `_pos` -> `_state`

this should make the function more generally useful and clear