bug fix about table.unique

In the `if` condition, it should be `n[#n + 1] = v`