fix string hash conflicts in compatibility mode
expose rb_os_allocated_objects for profilers
Merge branches 'gc-stats' and 'utf8-encoding-compat' into github-p231