ENH less copying in validation for neighbors
FIX safe_asarray to handle LIL, DOK formats
TST safe_asarray for dok_matrix and lil_matrix