fix O(n^2) array/object creation in toJSON
fix O(n^2) array/object creation in toJSON

sebadiaz/rethinkdb,gdi2290/rethinkdb,eliangidoni/rethinkdb,yakovenkodenis/rethinkdb,ayumilong/rethinkdb,sebadiaz/rethinkdb,urandu/rethinkdb,wujf/rethinkdb,catroot/rethinkdb,bchavez/rethinkdb,JackieXie168/rethinkdb,captainpete/rethinkdb,AntouanK/rethinkdb,marshall007/rethinkdb,ajose01/rethinkdb,wojons/rethinkdb,eliangidoni/rethinkdb,wujf/rethinkdb,losywee/rethinkdb,sebadiaz/rethinkdb,jfriedly/rethinkdb,bpradipt/rethinkdb,elkingtonmcb/rethinkdb,RubenKelevra/rethinkdb,AntouanK/rethinkdb,losywee/rethinkdb,nviennot/rethinkdb,gdi2290/rethinkdb,KSanthanam/rethinkdb,bpradipt/rethinkdb,wojons/rethinkdb,dparnell/rethinkdb,alash3al/rethinkdb,mquandalle/rethinkdb,lenstr/rethinkdb,alash3al/rethinkdb,jesseditson/rethinkdb,greyhwndz/rethinkdb,jesseditson/rethinkdb,grandquista/rethinkdb,mcanthony/rethinkdb,RubenKelevra/rethinkdb,4talesa/rethinkdb,nviennot/rethinkdb,jmptrader/rethinkdb,greyhwndz/rethinkdb,catroot/rethinkdb,yaolinz/rethinkdb,eliangidoni/rethinkdb,bchavez/rethinkdb,marshall007/rethinkdb,urandu/rethinkdb,matthaywardwebdesign/rethinkdb,catroot/rethinkdb,wkennington/rethinkdb,tempbottle/rethinkdb,victorbriz/rethinkdb,grandquista/rethinkdb,wkennington/rethinkdb,wujf/rethinkdb,Qinusty/rethinkdb,elkingtonmcb/rethinkdb,nviennot/rethinkdb,bpradipt/rethinkdb,sbusso/rethinkdb,AtnNn/rethinkdb,pap/rethinkdb,AtnNn/rethinkdb,grandquista/rethinkdb,mquandalle/rethinkdb,grandquista/rethinkdb,wojons/rethinkdb,Qinusty/rethinkdb,AtnNn/rethinkdb,greyhwndz/rethinkdb,jfriedly/rethinkdb,RubenKelevra/rethinkdb,sbusso/rethinkdb,mcanthony/rethinkdb,pap/rethinkdb,RubenKelevra/rethinkdb,nviennot/rethinkdb,bchavez/rethinkdb,scripni/rethinkdb,mbroadst/rethinkdb,Wilbeibi/rethinkdb,eliangidoni/rethinkdb,robertjpayne/rethinkdb,rrampage/rethinkdb,tempbottle/rethinkdb,bchavez/rethinkdb,jesseditson/rethinkdb,gdi2290/rethinkdb,jesseditson/rethinkdb,sbusso/rethinkdb,gdi2290/rethinkdb,nviennot/rethinkdb,dparnell/rethinkdb,ayumilong/rethinkdb,victorbriz/rethinkdb,bpradipt/rethinkdb,mquandalle/rethinkdb,spblightadv/rethinkdb,ayumilong/rethinkdb,robertjpayne/rethinkdb,sbusso/rethinkdb,jesseditson/rethinkdb,catroot/rethinkdb,jfriedly/rethinkdb,marshall007/rethinkdb,losywee/rethinkdb,robertjpayne/rethinkdb,jmptrader/rethinkdb,elkingtonmcb/rethinkdb,jfriedly/rethinkdb,Qinusty/rethinkdb,gdi2290/rethinkdb,gavioto/rethinkdb,nviennot/rethinkdb,gavioto/rethinkdb,spblightadv/rethinkdb,matthaywardwebdesign/rethinkdb,mquandalle/rethinkdb,catroot/rethinkdb,dparnell/rethinkdb,gavioto/rethinkdb,scripni/rethinkdb,mbroadst/rethinkdb,KSanthanam/rethinkdb,mcanthony/rethinkdb,JackieXie168/rethinkdb,bpradipt/rethinkdb,victorbriz/rethinkdb,rrampage/rethinkdb,scripni/rethinkdb,catroot/rethinkdb,KSanthanam/rethinkdb,mcanthony/rethinkdb,bpradipt/rethinkdb,Wilbeibi/rethinkdb,4talesa/rethinkdb,jesseditson/rethinkdb,gavioto/rethinkdb,mbroadst/rethinkdb,jfriedly/rethinkdb,yakovenkodenis/rethinkdb,yaolinz/rethinkdb,alash3al/rethinkdb,KSanthanam/rethinkdb,ajose01/rethinkdb,yaolinz/rethinkdb,JackieXie168/rethinkdb,scripni/rethinkdb,captainpete/rethinkdb,AntouanK/rethinkdb,rrampage/rethinkdb,eliangidoni/rethinkdb,wkennington/rethinkdb,greyhwndz/rethinkdb,marshall007/rethinkdb,Wilbeibi/rethinkdb,sontek/rethinkdb,Qinusty/rethinkdb,gavioto/rethinkdb,rrampage/rethinkdb,mquandalle/rethinkdb,losywee/rethinkdb,tempbottle/rethinkdb,wojons/rethinkdb,ayumilong/rethinkdb,wujf/rethinkdb,spblightadv/rethinkdb,losywee/rethinkdb,alash3al/rethinkdb,4talesa/rethinkdb,ajose01/rethinkdb,matthaywardwebdesign/rethinkdb,jesseditson/rethinkdb,sebadiaz/rethinkdb,bpradipt/rethinkdb,bchavez/rethinkdb,scripni/rethinkdb,spblightadv/rethinkdb,JackieXie168/rethinkdb,robertjpayne/rethinkdb,victorbriz/rethinkdb,urandu/rethinkdb,bpradipt/rethinkdb,bchavez/rethinkdb,matthaywardwebdesign/rethinkdb,catroot/rethinkdb,victorbriz/rethinkdb,jmptrader/rethinkdb,mcanthony/rethinkdb,elkingtonmcb/rethinkdb,yakovenkodenis/rethinkdb,sontek/rethinkdb,niieani/rethinkdb,grandquista/rethinkdb,yaolinz/rethinkdb,Qinusty/rethinkdb,sebadiaz/rethinkdb,wojons/rethinkdb,matthaywardwebdesign/rethinkdb,gdi2290/rethinkdb,yakovenkodenis/rethinkdb,rrampage/rethinkdb,RubenKelevra/rethinkdb,captainpete/rethinkdb,mcanthony/rethinkdb,dparnell/rethinkdb,tempbottle/rethinkdb,scripni/rethinkdb,AntouanK/rethinkdb,JackieXie168/rethinkdb,elkingtonmcb/rethinkdb,wojons/rethinkdb,sontek/rethinkdb,urandu/rethinkdb,matthaywardwebdesign/rethinkdb,spblightadv/rethinkdb,pap/rethinkdb,robertjpayne/rethinkdb,jfriedly/rethinkdb,grandquista/rethinkdb,spblightadv/rethinkdb,dparnell/rethinkdb,marshall007/rethinkdb,robertjpayne/rethinkdb,grandquista/rethinkdb,mbroadst/rethinkdb,sbusso/rethinkdb,ajose01/rethinkdb,eliangidoni/rethinkdb,lenstr/rethinkdb,wujf/rethinkdb,AtnNn/rethinkdb,elkingtonmcb/rethinkdb,captainpete/rethinkdb,nviennot/rethinkdb,ajose01/rethinkdb,urandu/rethinkdb,wujf/rethinkdb,elkingtonmcb/rethinkdb,AtnNn/rethinkdb,sontek/rethinkdb,alash3al/rethinkdb,4talesa/rethinkdb,grandquista/rethinkdb,dparnell/rethinkdb,alash3al/rethinkdb,marshall007/rethinkdb,bchavez/rethinkdb,sontek/rethinkdb,scripni/rethinkdb,wkennington/rethinkdb,lenstr/rethinkdb,lenstr/rethinkdb,Qinusty/rethinkdb,dparnell/rethinkdb,niieani/rethinkdb,tempbottle/rethinkdb,AtnNn/rethinkdb,grandquista/rethinkdb,yakovenkodenis/rethinkdb,bpradipt/rethinkdb,wkennington/rethinkdb,mquandalle/rethinkdb,elkingtonmcb/rethinkdb,captainpete/rethinkdb,spblightadv/rethinkdb,eliangidoni/rethinkdb,wojons/rethinkdb,matthaywardwebdesign/rethinkdb,matthaywardwebdesign/rethinkdb,niieani/rethinkdb,dparnell/rethinkdb,Wilbeibi/rethinkdb,urandu/rethinkdb,yakovenkodenis/rethinkdb,AtnNn/rethinkdb,KSanthanam/rethinkdb,victorbriz/rethinkdb,KSanthanam/rethinkdb,victorbriz/rethinkdb,rrampage/rethinkdb,marshall007/rethinkdb,sebadiaz/rethinkdb,Qinusty/rethinkdb,Wilbeibi/rethinkdb,JackieXie168/rethinkdb,wkennington/rethinkdb,sontek/rethinkdb,sbusso/rethinkdb,yaolinz/rethinkdb,eliangidoni/rethinkdb,mcanthony/rethinkdb,rrampage/rethinkdb,scripni/rethinkdb,mbroadst/rethinkdb,robertjpayne/rethinkdb,niieani/rethinkdb,4talesa/rethinkdb,urandu/rethinkdb,ajose01/rethinkdb,victorbriz/rethinkdb,gavioto/rethinkdb,Wilbeibi/rethinkdb,RubenKelevra/rethinkdb,spblightadv/rethinkdb,yaolinz/rethinkdb,jmptrader/rethinkdb,greyhwndz/rethinkdb,jesseditson/rethinkdb,robertjpayne/rethinkdb,mbroadst/rethinkdb,bchavez/rethinkdb,AntouanK/rethinkdb,wojons/rethinkdb,pap/rethinkdb,JackieXie168/rethinkdb,bchavez/rethinkdb,sontek/rethinkdb,ayumilong/rethinkdb,sebadiaz/rethinkdb,lenstr/rethinkdb,losywee/rethinkdb,alash3al/rethinkdb,ayumilong/rethinkdb,Wilbeibi/rethinkdb,yaolinz/rethinkdb,captainpete/rethinkdb,yakovenkodenis/rethinkdb,mquandalle/rethinkdb,JackieXie168/rethinkdb,niieani/rethinkdb,Qinusty/rethinkdb,yaolinz/rethinkdb,RubenKelevra/rethinkdb,captainpete/rethinkdb,lenstr/rethinkdb,mbroadst/rethinkdb,niieani/rethinkdb,sbusso/rethinkdb,jmptrader/rethinkdb,4talesa/rethinkdb,ajose01/rethinkdb,alash3al/rethinkdb,4talesa/rethinkdb,niieani/rethinkdb,ayumilong/rethinkdb,Qinusty/rethinkdb,jfriedly/rethinkdb,greyhwndz/rethinkdb,lenstr/rethinkdb,4talesa/rethinkdb,ajose01/rethinkdb,robertjpayne/rethinkdb,sebadiaz/rethinkdb,wkennington/rethinkdb,rrampage/rethinkdb,gavioto/rethinkdb,ayumilong/rethinkdb,pap/rethinkdb,urandu/rethinkdb,nviennot/rethinkdb,tempbottle/rethinkdb,sontek/rethinkdb,catroot/rethinkdb,niieani/rethinkdb,lenstr/rethinkdb,pap/rethinkdb,wujf/rethinkdb,Wilbeibi/rethinkdb,AntouanK/rethinkdb,RubenKelevra/rethinkdb,marshall007/rethinkdb,losywee/rethinkdb,jfriedly/rethinkdb,jmptrader/rethinkdb,tempbottle/rethinkdb,yakovenkodenis/rethinkdb,wkennington/rethinkdb,jmptrader/rethinkdb,JackieXie168/rethinkdb,captainpete/rethinkdb,KSanthanam/rethinkdb,dparnell/rethinkdb,jmptrader/rethinkdb,AntouanK/rethinkdb,greyhwndz/rethinkdb,losywee/rethinkdb,gavioto/rethinkdb,eliangidoni/rethinkdb,sbusso/rethinkdb,gdi2290/rethinkdb,greyhwndz/rethinkdb,mcanthony/rethinkdb,KSanthanam/rethinkdb,AtnNn/rethinkdb,mbroadst/rethinkdb,pap/rethinkdb,pap/rethinkdb,tempbottle/rethinkdb,mbroadst/rethinkdb,AntouanK/rethinkdb,mquandalle/rethinkdb