fix compiling errors in MSVC

this fix works in my Windows environment. so hope it works well also in our Jenkins. It seems, in MSVC, constant values in template classes should be defined together with their declaration. Otherwise, the compiler cannot interpret it as const expression, which means we cannot write like `double x[Line::nnodes]`.