Fixed displaying standard form types

Bug fix: yes
Feature addition: no
Backwards compatibility break: no
Fixes the following tickets: #837, #1070, maybe #970
Todo: -
License of the code: MIT

This PR fixes these problems:
  - Problem with displaying "repeated" form type.
  - Problem with displaying all standard form types when Sonata form theme is applied on custom non-Sonata form.