Revert changes to sparsefuncs_fast (corrected)