power_series: implement serialization.