Increased size for the array of user PDG id's to 1024

(cherry picked from commit f6c47ac8df974f7691939ac5bca1df13dc9af030)
Minor updates
Add ClingWorkAroundMissingDynamicScope in a transparent way.