SparseMatrixCSC reinterpret bug fix

Fix issue #4986 and add a test so it doesn't come back.

This seems to be getting muddled with my previous pull request and it says it can't automatically merge branches. I'm not sure what to do about that so I guess I'll just click Send.