Fix kron
ambiguity for triangular/hermitian matrices
#54413
Merged
kron
ambiguity for triangular/hermitian matrices
#54413