Merge branch 'hotfix/#5959-#6022-#6051-di-abstract-factory-without-instantiators-fallback'

Close #5959 #6022 #6051
throw exception if scalar json response is received
Minor CS cleanups, adding `@group` annotations to tests for #5956
Merge branch 'hotfix/#5956-zend-json-server-options-enforced-as-array' into develop

Close #5956