Rewrite ucl_array_merge