fix error in case: 88487 in removing schedules

basically looks like with jsonobject flip, some stuff weird stuff with how the wrapped schedule was remade for removal was causing some issues.

this calls the entire object into json and does the explicit wrap of the schedules later if and only if needed.
fixing tests merge
Merge pull request #62 from dimagi/rm_schedule_fix

Rm schedule fix