Support array as root element in Postgresql JSON columns

https://github.com/rails/rails/commit/7816b9852b813545a239be53afdd2dc379229614