fixed problem with some lists, e.g. ggplot-lists, with non standard classes