Some equalities in a unitary space leading to equalities concerning singular values of sets of matrices