dmconfig: fix leaf-list handling

Signed-off-by: Petar Koretic <petar.koretic@sartura.hr>