SIM code cleanup for Geant4 10

Includes fix of warning on geometry at the end of all Geant4 runs.

Changing usage of G4Allocator - instead of instance pointer is used. No affect production but is necessary for multi-threaded version.