Add pickle test for structures. Remove singleton decorator for PT.