genListPickler supports lists of non-primitive elements