Fix #8243 and add scalar division for Triangular
Merge pull request #8249 from JuliaLang/anj/fixtri

Fix #8243 and add scalar division for Triangular