Added support for nested lists
Renamed printByType to printGeneric
Added support for formatting containers with %s