Merge branch 'hotfix/#6440-template-path-stack-resolver-factory-typo-fix'

Close #6440
Unit test demonstrating bug in Zend Session exchangeArray/getArrayCopy
Fix for bug in Zend Session exchangeArray/getArrayCopy
cs fixes
#6427 - minor cs fixes
Merge branch 'hotfix/#6427-zend-session-container-getarraycopy-fatal-fix' into develop

Forward port #6427