feature: reimplemented the writing part of the ngx.var API with FFI.