Numerically Sane Construction of Polynomial Least Squares Filters via QR Factorization