Fix caching test
Pass test subsets
Scatter mixed mats correctly when using itspace
Pass all matrices tests
Clean up some code
Fix addto_scalar when using buffers