Workaround for libuci-lua list semantics change.

Setting a list value of length one appends to a list in recent versions of
libuci-lua, whereas it used to always overwrite the contents of the list. This
commit works around this odd corner case by erasing the contents of the list
before setting it.