fixing exact SGS term and adding tensor boundary conditions

4th order term in exact SGS term was incorrect.
adding ability to add BCs to tensor fields. Using this to add consistent
Dirichlet BC to Helmholtz smoothed tensor field, so that we can set SGS
term = 0 on boundaries.