Slightly generalize transformation of memmove(a,a,n) so that it also applies