Merge branch 'hotfix/5008'

Close #5008
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' into develop

Close #5015