Added support for flat data structures

I added support for key value instances, where the li element's text is the value and no complex data structure is used.