tridiag_worker: use a range-based 'for' loop for better genericity.
Merge branch 'complex_tridiag' into 1.2-dev