Fix to issue 813
When restarting, we need to allocate the memory for the engine's reparttype. The pointer restored from the restart files is dangling as it directs to the address of the main()'s reparttype of the original run.
This was introduced by !1529 (merged). I am not sure why it wasn't caught then since the whole point of that MR was to change the startup sequence to allow for a different partition scheme.
Fixes #813 (closed).
Edited by Matthieu Schaller