check dimnames for symmetric matrix