QR reparametrization error

Thanks! That helps a lot. I’ll put up an issue on the Stan repo. Hopefully we can track it down by the next release.

Just a heads up, we don’t do much testing against g++ 7.x. If you find more compiler errors, please reach out before spending too much time on it.