BUG: Avoid type promotion in tril and triu.
Merge pull request #4916 from yotam/triu-dtype-fix

BUG: Avoid type promotion in tril and triu.