Fix typing of stmt having input parameters in temporary view