fix missing ScalarType which was preventing compilation with gcc