SparseCore: Fix 12 out-of-bounds and overflow defects

libeigen/eigen!3635

Closes #3246, #3252, #3262, #3288, #3290, #3291, #3294, #3302, #3304, #3325, #3338, and #3342

Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
21 files changed