BaseModel: update_app_repr

1. all complex attribute must have a length (so the must be lists
or dicts). If we encounter a attribute w/o a length, like None,
set the complex attribute to the empty string. Ideally, we should
avoid have None as attribute values at all.
2. add missing comma in string-repr.