MAINT: simplify conversion from lil matrix