Add setModel method to FormBuilder

#3082 on 4.1 branch