Fixed processing of self-referential JSON

A backside widget can now refer to its container. Needed for JSON of
attribute widgets.
Added JSON processing for attribute widgets