Support for encoding v8.Value.