Add system and nested only flags
Set the data, not an object pointer on the model. Otherwise backbone relationals gets confused.
Use the model that matches the widget.
Add integrity check to relation widget. Fix type on orm.
Merge pull request #2 from jrogelstad/21664

issue #21664: Some fixes.