avoid using reflection based mergeArrays