bugfix mem.set.
add segment option for var.