Add tuple support in ffi.remapToJs