Fix several incorrect intents
Description
Fix several incorrect intents: in some places we had arguments with intent(out) where we were passing variables that had already been initialized. In that case the compiler is allowed to "finalize" the variables. It seems this was not issue because the variables we were passing were pointers.
News snippet
Fix several incorrect intents.
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.