Fix bug in acceleration of coo_matrix construction