fixed scaling of x0 when applicable + fixed linear scaling along with pwq bounds in vectorized form + added unit test of vectorized form with inverse pheno function