Patch by David Rowe to make the inputs of cheb_poly_eva() 16-bit