Refs #8651 fix cppcheck problems
Merge branch 'feature/8651_errors_OptimizeLatticeForCellType' into develop