jshn: clear more variables on json_init, fix adding array elements