Fix set variable value to object

Fix a bug where object values `{ objectId: '<id>' }` were not correctly
translated to V8 references `{ handle: <id>}`.

Close #273.

@3y3 would you like to review the change?