Support pickling
Up to 0.3.6