[Form] Support auto guessing for Form types when using property_path

[Form] Changes in FormFactory class
| Q                   | A
| ----------------------| ---
| Bug fix?          | no
| New feature?   | yes
| BC breaks?     | no
| Deprecations? | no
| Tests pass?    | yes
| Fixed tickets   | #5645
| License          | MIT