Implement setOptions method
typo fix
Merge pull request #5015 from thestanislav/PreferFormInputFilter

Allow set Form::setPreferFormInputFilter via options
[#5015] Added unit tests

- Added tests to demonstrate that preferFormInputFilter flag can now be set via
  options and factory implementations.
Merge branch 'hotfix/5015'

Close #5015