fix memory leak when converting native->v8 objects