Support array as root element in JSON

Conflicts:
	activerecord/test/cases/adapters/postgresql/json_test.rb