BUG: Avoid type promotion in tril and triu.