Support null values in kv and update rapi