checks for sparse matrix construction with I,J,V

fixes #8225