Fixed bug with JSON array from context setting

as described here: http://forums.modx.com/thread/?thread=81470
originally fixed by Fi1osof: https://github.com/Fi1osof/revolution/commit/111556798b8afa8fbd8444a55753d251083d0315