FPGATrackSim: fix memory leaks
This addresses some memory leaks spotted in the FPGATrackSim workflow.
Some are meant to be quick fixes till the rest of the code complies with the use of smart pointers.
Related to EFTRACK-546
Edited by Ioannis Maznas