support ffi.new on non-array type

Signed-off-by: Qingping Hou <qingping.hou@gmail.com>
update tests for non-array ffi.new

Signed-off-by: Qingping Hou <qingping.hou@gmail.com>