polys: Very preliminary pickling support and tests