change form select box

- show the box only in debug mode
fix bugs

- fix wrong array access
- fix bug in nestedforms, properties were not written
update form resource loading

- update formgenerator classes to get all properties of a resource from requestmodel and imported models
- add requestmodel field to form, to be able to load properties from a other model as to write to