Added array check to form value setter
Updated doc comment
Added OptGroup example