Bootstraped value_set type

Please open a scope here, like:
```C
if (!s) {
    return NULL;
}
```