Added labels to auto generated forms and fixed bug in ModelBase::form()