move assignment in DistMatrix classes and ZMatrix

Forgot to add last time.