added support for arbitrary nesting of lists and nullable lists