Adopted from patch: https://github.com/cms-sw/cmsdist/blob/IB/CMSSW_13_0_X/master/vecgeom-fix-vector.patch