Fixes to_json and to_xml for ActiveResource
Fixes to_json and to_xml for ActiveResource

Signed-off-by: José Valim <0c2436ea76ed86e37cc05f66dea18d48ef390882@gmail.com>

ngpestelos/rails,iainbeeston/rails,yawboakye/rails,88rabbit/newRails,bolek/rails,bogdanvlviv/rails,printercu/rails,stefanmb/rails,lucasmazza/rails,riseshia/railsguides.kr,lucasmazza/rails,alecspopa/rails,marklocklear/rails,richseviora/rails,88rabbit/newRails,voray/rails,betesh/rails,marklocklear/rails,rafaelfranca/omg-rails,iainbeeston/rails,tgxworld/rails,kmcphillips/rails,kddeisz/rails,jeremy/rails,kachick/rails,felipecvo/rails,betesh/rails,kmayer/rails,printercu/rails,Edouard-chin/rails,kmcphillips/rails,kachick/rails,iainbeeston/rails,gcourtemanche/rails,MSP-Greg/rails,sergey-alekseev/rails,matrinox/rails,kmcphillips/rails,tjschuck/rails,riseshia/railsguides.kr,amoody2108/TechForJustice,pvalena/rails,coreyward/rails,mohitnatoo/rails,tjschuck/rails,pvalena/rails,mijoharas/rails,aditya-kapoor/rails,MichaelSp/rails,deraru/rails,assain/rails,sealocal/rails,kmayer/rails,gavingmiller/rails,Edouard-chin/rails,baerjam/rails,coreyward/rails,vipulnsward/rails,MSP-Greg/rails,Stellenticket/rails,xlymian/rails,hanystudy/rails,alecspopa/rails,mathieujobin/reduced-rails-for-travis,flanger001/rails,joonyou/rails,joonyou/rails,fabianoleittes/rails,utilum/rails,schuetzm/rails,shioyama/rails,Stellenticket/rails,iainbeeston/rails,mijoharas/rails,untidy-hair/rails,mijoharas/rails,yalab/rails,kddeisz/rails,Sen-Zhang/rails,amoody2108/TechForJustice,rossta/rails,bolek/rails,odedniv/rails,bradleypriest/rails,kmcphillips/rails,illacceptanything/illacceptanything,betesh/rails,Erol/rails,kamipo/rails,kddeisz/rails,assain/rails,BlakeWilliams/rails,Envek/rails,tijwelch/rails,ttanimichi/rails,MichaelSp/rails,gfvcastro/rails,illacceptanything/illacceptanything,maicher/rails,gavingmiller/rails,amoody2108/TechForJustice,arunagw/rails,tgxworld/rails,hanystudy/rails,repinel/rails,esparta/rails,mtsmfm/rails,bolek/rails,pschambacher/rails,ngpestelos/rails,Spin42/rails,felipecvo/rails,mechanicles/rails,ledestin/rails,tgxworld/rails,MSP-Greg/rails,Spin42/rails,eileencodes/rails,gfvcastro/rails,gfvcastro/rails,fabianoleittes/rails,deraru/rails,utilum/rails,prathamesh-sonpatki/rails,travisofthenorth/rails,Envek/rails,yasslab/railsguides.jp,travisofthenorth/rails,arunagw/rails,ledestin/rails,untidy-hair/rails,mathieujobin/reduced-rails-for-travis,arunagw/rails,kaspth/rails,samphilipd/rails,aditya-kapoor/rails,flanger001/rails,richseviora/rails,illacceptanything/illacceptanything,rafaelfranca/omg-rails,gavingmiller/rails,lcreid/rails,utilum/rails,kamipo/rails,pvalena/rails,yahonda/rails,georgeclaghorn/rails,kirs/rails-1,stefanmb/rails,baerjam/rails,shioyama/rails,Vasfed/rails,koic/rails,illacceptanything/illacceptanything,richseviora/rails,riseshia/railsguides.kr,hanystudy/rails,yasslab/railsguides.jp,Edouard-chin/rails,travisofthenorth/rails,Erol/rails,deraru/rails,kmayer/rails,notapatch/rails,xlymian/rails,kachick/rails,kenta-s/rails,yahonda/rails,eileencodes/rails,sergey-alekseev/rails,fabianoleittes/rails,illacceptanything/illacceptanything,gauravtiwari/rails,esparta/rails,ttanimichi/rails,Edouard-chin/rails,arjes/rails,arunagw/rails,BlakeWilliams/rails,illacceptanything/illacceptanything,yawboakye/rails,deraru/rails,maicher/rails,bradleypriest/rails,sergey-alekseev/rails,esparta/rails,untidy-hair/rails,mtsmfm/rails,esparta/rails,georgeclaghorn/rails,vassilevsky/rails,Vasfed/rails,arjes/rails,notapatch/rails,yhirano55/rails,gcourtemanche/rails,Envek/rails,rossta/rails,mechanicles/rails,rbhitchcock/rails,yawboakye/rails,tjschuck/rails,rossta/rails,vipulnsward/rails,lucasmazza/rails,matrinox/rails,yahonda/rails,kirs/rails-1,yalab/rails,rails/rails,yhirano55/rails,bradleypriest/rails,kenta-s/rails,starknx/rails,rafaelfranca/omg-rails,marklocklear/rails,rails/rails,printercu/rails,stefanmb/rails,Vasfed/rails,kddeisz/rails,prathamesh-sonpatki/rails,Erol/rails,joonyou/rails,brchristian/rails,shioyama/rails,gfvcastro/rails,gcourtemanche/rails,jeremy/rails,mechanicles/rails,mohitnatoo/rails,yalab/rails,Stellenticket/rails,jeremy/rails,voray/rails,repinel/rails,tgxworld/rails,schuetzm/rails,ttanimichi/rails,coreyward/rails,illacceptanything/illacceptanything,MichaelSp/rails,eileencodes/rails,ledestin/rails,kaspth/rails,illacceptanything/illacceptanything,repinel/rails,flanger001/rails,maicher/rails,rails/rails,Erol/rails,repinel/rails,koic/rails,illacceptanything/illacceptanything,betesh/rails,vipulnsward/rails,georgeclaghorn/rails,aditya-kapoor/rails,Stellenticket/rails,aditya-kapoor/rails,elfassy/rails,vassilevsky/rails,flanger001/rails,mechanicles/rails,illacceptanything/illacceptanything,palkan/rails,baerjam/rails,pschambacher/rails,yhirano55/rails,alecspopa/rails,Vasfed/rails,vipulnsward/rails,ngpestelos/rails,gauravtiwari/rails,yawboakye/rails,BlakeWilliams/rails,EmmaB/rails-1,prathamesh-sonpatki/rails,arjes/rails,pschambacher/rails,mohitnatoo/rails,jeremy/rails,yasslab/railsguides.jp,88rabbit/newRails,kirs/rails-1,kenta-s/rails,illacceptanything/illacceptanything,lcreid/rails,utilum/rails,yasslab/railsguides.jp,vassilevsky/rails,starknx/rails,illacceptanything/illacceptanything,bogdanvlviv/rails,elfassy/rails,untidy-hair/rails,MSP-Greg/rails,riseshia/railsguides.kr,pvalena/rails,odedniv/rails,mtsmfm/railstest,mtsmfm/railstest,tjschuck/rails,odedniv/rails,notapatch/rails,brchristian/rails,BlakeWilliams/rails,gauravtiwari/rails,voray/rails,georgeclaghorn/rails,mohitnatoo/rails,assain/rails,travisofthenorth/rails,fabianoleittes/rails,brchristian/rails,rbhitchcock/rails,samphilipd/rails,lcreid/rails,printercu/rails,yahonda/rails,mtsmfm/railstest,palkan/rails,prathamesh-sonpatki/rails,illacceptanything/illacceptanything,sealocal/rails,mtsmfm/rails,Sen-Zhang/rails,samphilipd/rails,palkan/rails,eileencodes/rails,illacceptanything/illacceptanything,rails/rails,EmmaB/rails-1,EmmaB/rails-1,Sen-Zhang/rails,yhirano55/rails,lcreid/rails,xlymian/rails,koic/rails,yalab/rails,illacceptanything/illacceptanything,kamipo/rails,palkan/rails,felipecvo/rails,assain/rails,starknx/rails,bogdanvlviv/rails,baerjam/rails,matrinox/rails,kaspth/rails,bogdanvlviv/rails,Envek/rails,shioyama/rails,rbhitchcock/rails,mathieujobin/reduced-rails-for-travis,tijwelch/rails,elfassy/rails,sealocal/rails,joonyou/rails,schuetzm/rails,Spin42/rails,notapatch/rails,tijwelch/rails,schuetzm/rails