Move calls to SET_ARRAY_INFO to common helper.