Heap rooting related changes, mainly in MapReader and Simulation.