Added a type checking which handle the case of an ext vector and integral scalar