fixed usage of Geant4 constructors of G4Polycone and G4Polyhedra in CMS ...

Fixed geometry unit test, which likely has problem in previous versions of CMSSW but better to apply this only for GEANT10_X branch