Fixed bugs in new JSON scheme

Two known ones remain: (1)  widgets end up at 0,0 and (2) drag JSON
string of top-level backside doesn't display widgets without a refresh.