Fixed generated code for creating new instances where the wrong template was used in typed json.
Merge branch 'issue/1940' into develop
Fixed setting initial request after refactoring, solves #1941
Merge branch 'issue/1941' into develop
Merge branch 'develop' into issue/1945