WIP: Test fixes to sparse_center_data and center_data

Some more refactoring to be done in sparsfuncs.pyx