MAINT: fix non-integer usage in cluster and sparse.