Support include_root_in_json for ActiveResource properly.

This commit is a backport from
https://github.com/rails/activeresource/pull/29. The ActiveResource's include_root_in_json option works in 3.1.x, but is broken for 3.2.x.