Fix ability to specify form via class name.
Merge pull request #2285 from Richtermeister/fix-form-via-classname

Fix ability to specify form via class name.