BUG: sparse: fix const declarations in generate_sparsetools