Fixed some bugs and added shift_left/right for power series.