Fix switch on wrong input's scalar type.