GH-111339: Move optimizer types to object.c
#111430
+26
−19
Merged
object.c
#111430