pub fn tile_primitive<T: NativeType>(
    arr: &PrimitiveArray<T>,
    n: usize
) -> PrimitiveArray<T>