R: use Matrix:: on tril and triu.

Otherwise they are not visible.