use template parameter Scalar instead of VectorType, fix a segfault.
2 files changed