Document that *_set() and *_remove() can have val/old_val == NULL.

Also fix up oldval/old_val naming inconsistency.
Remove redundant braces in switch case.

Leftover.