Fix dynamic form

Adds an example and fixes also some minor issues with nested field group.