Improve compatibility with CRuby

```ruby
# Support symbol stringify
JSON.stringify([:foo])
 => "[\"foo\"]"

# Alias of JSON.stringify (CRuby style)
JSON.generate([:bar, :baz])
 => "[\"bar\",\"baz\"]"
```