fix CID 10112

fix CIDs 10922, 10921

fix CIDs 10369, 10371, 10372, 10373, 10374

fix CID 10406

fix CID 10414

fix CIDs 10850-52, 10857, 10859-60, 10863, 10869-76

fix CIDs 10014 10080
bug correction and Bug #18 in https://fairroot-redmine.gsi.de/issues/18
no more than 256 different pdg is allowed by TGeoManager
coverity bug 10345