When scalar replacement returns a vector type, only accept it if the vector