Update __repr__ for memory device classes.