Update configurable property syntax in BeamHaloGenerator, CavernBkgGenerator and CosmicGenerator packages
No change in output expected.
(These changes were initially made as part of !58216 (merged), but were postponed until after the random seeding changes had gone through.)
Tagging @ewelina.
Edited by John Derek Chapman