crunchgen: sprinkle some const-poisoning around
(cherry picked from commit db7f7446b5bcb26c7aaf13c8151b4ae8051c5732)