added pickling when storing data of dtype=object