fix more runtime warnings (temp arrays)
Description
Continue our saga to remove temporary array runtime warnings.
News snippet
Fix temporary array runtime warnings
Checklist
-
I have checked that my code follows the Octopus coding standards -
I have added tests for all the new features added in this request.