adds recursive comparison of slices/arrays