Major optimization of sparse hessian construction.
- Avoid recalculating expressions that are constant for each hessian column.
- Eliminates overhead of e.g. spatial.cpp
Optimized sparseness detection pass unittest