strshift: Make work for arrays of arbitrary type