[ruby-core:118572] [Ruby master Misc#20630] Potential optimizations for NODE_CONST compilation