migrate ext_icu_collator to use inout parameters instead of references