apply.mat() replaces `attributes<-`() with `dimnames<-`().