fix ScalarDotGradIScalarTerm - add vector mode