Minor fixes in QR

QR still needs a problem that uses the industrial qr algorithm.