Adds fromArray functionality for togglegroups and selects.
Removed the FormFactory