fixing python->js and js->python for dictionaries and arrays. bug was converting array values ->ToObject() which was obscuring their type, causing them to blow up on conversion coming back out of python