add support for callling ffi.new on non-array type